<?php
    // 接收前端发送的数据
    $s =@$_GET["shopName"];
    $c =@$_GET["companyName"];
    $u =@$_GET["useName"];
    $T =@$_GET["telName"];
    $t = @$_GET["textarea"];
    $link = mysqli_connect("localhost","root","123456","aosuo");
    if(!$link){
        $msg = array("msg"=>mysqli_connect_error);
        die(json_encode($msg));
    }else{
        echo "成功";
    };
    
    $sql = "INSERT  xinxi (shopName,companyName,useName,telName,textarea) VALUES('".$s."','".$c."','".$u."','".$T."','".$t."')";
    $res = mysqli_query($link, $sql);   
    if($res){
        
        $row = mysqli_fetch_assoc($res);

    }else{
        die("连接错误" . mysqli_error());
    };
    
?>